package nextee.cabletest.data;

import javafx.beans.property.DoubleProperty;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * Created by ycj on 2015/3/28.
 */
public class DeviceData {
    private StringProperty code;
    private DoubleProperty voltage;
    private DoubleProperty current;
    private StringProperty recv;

    public StringProperty codeProperty(){
        return code;
    }

    public StringProperty recvProperty(){
        return recv;
    }

    public DoubleProperty voltageProperty(){
        return voltage;
    }

    public DoubleProperty currentProperty(){
        return current;
    }

    public DeviceData(String code, double voltage, double current, String recv){
        this.code = new SimpleStringProperty(code);
        this.voltage = new SimpleDoubleProperty(voltage);
        this.current = new SimpleDoubleProperty(current);
        this.recv = new SimpleStringProperty(recv);
    }
}
